import {useNavigate} from "react-router-dom"
const Login = () => {
    const navigate = useNavigate()
    const goAbout = () => {
        navigate('/about',{replace: true})
    }
    return (
        <div>
            Login
            <button onClick={goAbout}>跳转关于页</button>
        </div>
    )
}
export default Login